package com.lzx.adx.report.enums;

public enum KjbCovertYoukuEventTypeEnums {

    register("1","active","激活"),
    retain("2","retention","次日留存"),
    crruent_buy("4","wake","唤醒app");

    private String code;

    private String outCode;

    private String desc;


    KjbCovertYoukuEventTypeEnums(String code, String outCode, String desc) {
        this.code = code;
        this.outCode = outCode;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getOutCode() {
        return outCode;
    }


    public static String getOutCode(String elmCode){
        for (KjbCovertYoukuEventTypeEnums value : KjbCovertYoukuEventTypeEnums.values()) {
            if(value.getCode().equals(elmCode)){
                return value.getOutCode();
            }
        }
        return  null;
    }

}
